package com.fanxuankai.boot.mqbroker.autoconfigure;

/**
 * 补偿配置
 *
 * @author fanxuankai
 */
public class Compensation {
    /**
     * 是否开启
     */
    private boolean enabled = true;
    /**
     * 间隔 ms
     */
    private long interval = 300_000;
    /**
     * 拉取消息的数量, 大于 500 时需要设置 mybatis-plus 分页 limit 为-1
     */
    private int batchSize = 100;

    public boolean isEnabled() {
        return enabled;
    }

    public void setEnabled(boolean enabled) {
        this.enabled = enabled;
    }

    public long getInterval() {
        return interval;
    }

    public void setInterval(long interval) {
        this.interval = interval;
    }

    public int getBatchSize() {
        return batchSize;
    }

    public void setBatchSize(int batchSize) {
        this.batchSize = batchSize;
    }
}